Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@tiptap/extension-text
Advanced tools
@tiptap/extension-text is an extension for the Tiptap editor, which is a headless, framework-agnostic text editor built on ProseMirror. This extension provides basic text handling capabilities, allowing you to manage and manipulate text content within the Tiptap editor.
Basic Text Handling
This feature allows you to add basic text handling capabilities to your Tiptap editor instance. By including the Text extension, you can manage plain text content within the editor.
import { Text } from '@tiptap/extension-text';
const editor = new Editor({
extensions: [
Text,
],
});
Custom Text Configuration
This feature allows you to extend the default Text extension to include custom attributes or configurations. In this example, a custom attribute is added to the Text extension.
import { Text } from '@tiptap/extension-text';
const CustomText = Text.extend({
addAttributes() {
return {
customAttribute: {
default: null,
},
};
},
});
const editor = new Editor({
extensions: [
CustomText,
],
});
The prosemirror-schema-basic package provides a basic schema for ProseMirror, which includes nodes for paragraphs, headings, text, and more. It is similar to @tiptap/extension-text in that it provides basic text handling capabilities, but it is more focused on providing a complete schema for a basic editor setup.
Draft.js is a framework for building rich text editors in React. It provides a set of immutable models and helper functions for managing text content. While it offers more advanced text handling and formatting capabilities compared to @tiptap/extension-text, it is specifically designed for use with React.
Quill is a powerful, rich text editor built for the modern web. It provides a wide range of text formatting options and is highly customizable. Compared to @tiptap/extension-text, Quill offers a more comprehensive set of features out of the box, but it is a complete editor rather than an extension.
Tiptap is a headless wrapper around ProseMirror – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as New York Times, The Guardian or Atlassian.
Documentation can be found on the Tiptap website.
Tiptap is open sourced software licensed under the MIT license.
FAQs
text extension for tiptap
We found that @tiptap/extension-text demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.